package com.zzw.hj9;

import java.util.LinkedHashSet;
import java.util.Scanner;

/**
 * @Project: hw_java
 * @Description: 提取不重复的整数
 * @Author: zzw
 */

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int num = in.nextInt();
        // LinkedHashSet去重
        LinkedHashSet<Integer> numList = new LinkedHashSet<>();
        while (num > 0) {
            int temp = num % 10;
            num = num / 10;
            numList.add(temp);
        }
        for (Integer i : numList) {
            System.out.print(i);
        }
    }
}